<?php
namespace backend\modules\admin\controllers;

use Yii;
use yii\web\Controller as BaseController;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use backend\modules\admin\models\AdminForm;
use backend\modules\admin\models\Role;
use backend\modules\admin\models\Menu;
use backend\components\Utools;
use backend\components\Whtml;
use backend\components\Urls;


/**
 * 后端共用控制器，主要负责验证用户登录 权限判断等
 */
class Controller extends BaseController
{   
   

   public $siteid=0;
   public $priMenus=[];
   public function __construct($id, $module, $config = [] )
   {
       parent::__construct($id, $module, $config = [] );
       $this->siteid=isset(Yii::$app->session['siteid'])?Yii::$app->session['siteid']:0;
   }
}
